﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace jnxc.Web.preventionskill
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int psid=(Convert.ToInt32(strid));
					ShowInfo(psid);
				}
			}
		}
		
	private void ShowInfo(int psid)
	{
		jnxc.BLL.preventionskill bll=new jnxc.BLL.preventionskill();
		DataSet ds=bll.GetPro(psid);
        if (ds.Tables[0].Rows.Count == 1)
        {
            this.lblpsid.Text = ds.Tables[0].Rows[0]["hname"].ToString();
            //this.lblhid.Text = model.hid.ToString();
            this.lblpsinfo.Text = ds.Tables[0].Rows[0]["psinfo"].ToString();
        }

	}

    protected void btnCancle_Click(object sender, EventArgs e)
    {
        Response.Redirect("list.aspx");
    }


    }
}
